// @ts-ignore
/* eslint-disable */
import request from '@/request';

/** addMovieOrder POST /api/movieOrder/add */
export async function addMovieOrderUsingPost(
  body: API.MovieOrderAddRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseLong_>('/api/movieOrder/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** deleteMovieOrder POST /api/movieOrder/delete */
export async function deleteMovieOrderUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/movieOrder/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** editMovieOrder POST /api/movieOrder/edit */
export async function editMovieOrderUsingPost(
  body: API.MovieOrderEditRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/movieOrder/edit', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** getMovieOrderVOById GET /api/movieOrder/get/vo */
export async function getMovieOrderVoByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getMovieOrderVOByIdUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseMovieOrderVO_>('/api/movieOrder/get/vo', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** listMovieOrderByPage POST /api/movieOrder/list/page */
export async function listMovieOrderByPageUsingPost(
  body: API.MovieOrderQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageMovieOrder_>('/api/movieOrder/list/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** listMovieOrderVOByPage POST /api/movieOrder/list/page/vo */
export async function listMovieOrderVoByPageUsingPost(
  body: API.MovieOrderQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageMovieOrderVO_>('/api/movieOrder/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** listMyMovieOrderVOByPage POST /api/movieOrder/my/list/page/vo */
export async function listMyMovieOrderVoByPageUsingPost(
  body: API.MovieOrderQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageMovieOrderVO_>('/api/movieOrder/my/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
